jQuery(document).ready(function () {
    $.fn.modal.defaults.spinner = $.fn.modalmanager.defaults.spinner =
            '<div class="loading-spinner" style="width: 200px; margin-left: -100px;">' +
            '<div class="progress progress-striped active">' +
            '<div class="progress-bar" style="width: 100%;"></div>' +
            '</div>' +
            '</div>';

    $.fn.modalmanager.defaults.resize = true;
});
function showMessage(title, content, color) {
//    teal
//    amethyst
//    ruby
//    tangerine
//    lemon
//    lime
//    ebony
//    smoke
    var settings = {
        theme: color,
        sticky: 0,
        horizontalEdge: "top",
        verticalEdge: "right"
    },
    $button = $(this);

    if ($.trim(title) !== '') {
        settings.heading = title;
    }

    if (!settings.sticky) {
        settings.life = 10000;
    }

    $.notific8('zindex', 11500);
    $.notific8($.trim(content), settings);

    $button.attr('disabled', 'disabled');

    setTimeout(function () {
        $button.removeAttr('disabled');
    }, 1000);

}